﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CD3 RID: 3283
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PDCBFEBJEDH : IMessage<PDCBFEBJEDH>, IMessage, IEquatable<PDCBFEBJEDH>, IDeepCloneable<PDCBFEBJEDH>, IBufferMessage
	{
		// Token: 0x1700294A RID: 10570
		// (get) Token: 0x060092A4 RID: 37540 RVA: 0x00185275 File Offset: 0x00183475
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PDCBFEBJEDH> Parser
		{
			get
			{
				return PDCBFEBJEDH._parser;
			}
		}

		// Token: 0x1700294B RID: 10571
		// (get) Token: 0x060092A5 RID: 37541 RVA: 0x0018527C File Offset: 0x0018347C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PDCBFEBJEDHReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700294C RID: 10572
		// (get) Token: 0x060092A6 RID: 37542 RVA: 0x0018528E File Offset: 0x0018348E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PDCBFEBJEDH.Descriptor;
			}
		}

		// Token: 0x060092A7 RID: 37543 RVA: 0x00185295 File Offset: 0x00183495
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PDCBFEBJEDH()
		{
		}

		// Token: 0x060092A8 RID: 37544 RVA: 0x001852A0 File Offset: 0x001834A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PDCBFEBJEDH(PDCBFEBJEDH other) : this()
		{
			this.hLCDJBLKODE_ = other.hLCDJBLKODE_;
			this.groupId_ = other.groupId_;
			PDCBFEBJEDH.APFJGHLEDOGOneofCase apfjghledogcase = other.APFJGHLEDOGCase;
			if (apfjghledogcase != PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault)
			{
				if (apfjghledogcase != PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory)
				{
					if (apfjghledogcase == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss)
					{
						this.ChallengeBoss = other.ChallengeBoss.Clone();
					}
				}
				else
				{
					this.ChallengeStory = other.ChallengeStory.Clone();
				}
			}
			else
			{
				this.ChallengeDefault = other.ChallengeDefault.Clone();
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060092A9 RID: 37545 RVA: 0x00185334 File Offset: 0x00183534
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PDCBFEBJEDH Clone()
		{
			return new PDCBFEBJEDH(this);
		}

		// Token: 0x1700294D RID: 10573
		// (get) Token: 0x060092AA RID: 37546 RVA: 0x0018533C File Offset: 0x0018353C
		// (set) Token: 0x060092AB RID: 37547 RVA: 0x00185344 File Offset: 0x00183544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint HLCDJBLKODE
		{
			get
			{
				return this.hLCDJBLKODE_;
			}
			set
			{
				this.hLCDJBLKODE_ = value;
			}
		}

		// Token: 0x1700294E RID: 10574
		// (get) Token: 0x060092AC RID: 37548 RVA: 0x0018534D File Offset: 0x0018354D
		// (set) Token: 0x060092AD RID: 37549 RVA: 0x00185355 File Offset: 0x00183555
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x1700294F RID: 10575
		// (get) Token: 0x060092AE RID: 37550 RVA: 0x0018535E File Offset: 0x0018355E
		// (set) Token: 0x060092AF RID: 37551 RVA: 0x0018537A File Offset: 0x0018357A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStatistics ChallengeDefault
		{
			get
			{
				if (this.aPFJGHLEDOGCase_ != PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault)
				{
					return null;
				}
				return (ChallengeStatistics)this.aPFJGHLEDOG_;
			}
			set
			{
				this.aPFJGHLEDOG_ = value;
				this.aPFJGHLEDOGCase_ = ((value == null) ? PDCBFEBJEDH.APFJGHLEDOGOneofCase.None : PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault);
			}
		}

		// Token: 0x17002950 RID: 10576
		// (get) Token: 0x060092B0 RID: 37552 RVA: 0x00185394 File Offset: 0x00183594
		// (set) Token: 0x060092B1 RID: 37553 RVA: 0x001853B0 File Offset: 0x001835B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryStatistics ChallengeStory
		{
			get
			{
				if (this.aPFJGHLEDOGCase_ != PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory)
				{
					return null;
				}
				return (ChallengeStoryStatistics)this.aPFJGHLEDOG_;
			}
			set
			{
				this.aPFJGHLEDOG_ = value;
				this.aPFJGHLEDOGCase_ = ((value == null) ? PDCBFEBJEDH.APFJGHLEDOGOneofCase.None : PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory);
			}
		}

		// Token: 0x17002951 RID: 10577
		// (get) Token: 0x060092B2 RID: 37554 RVA: 0x001853CA File Offset: 0x001835CA
		// (set) Token: 0x060092B3 RID: 37555 RVA: 0x001853E6 File Offset: 0x001835E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossStatistics ChallengeBoss
		{
			get
			{
				if (this.aPFJGHLEDOGCase_ != PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss)
				{
					return null;
				}
				return (ChallengeBossStatistics)this.aPFJGHLEDOG_;
			}
			set
			{
				this.aPFJGHLEDOG_ = value;
				this.aPFJGHLEDOGCase_ = ((value == null) ? PDCBFEBJEDH.APFJGHLEDOGOneofCase.None : PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss);
			}
		}

		// Token: 0x17002952 RID: 10578
		// (get) Token: 0x060092B4 RID: 37556 RVA: 0x00185400 File Offset: 0x00183600
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PDCBFEBJEDH.APFJGHLEDOGOneofCase APFJGHLEDOGCase
		{
			get
			{
				return this.aPFJGHLEDOGCase_;
			}
		}

		// Token: 0x060092B5 RID: 37557 RVA: 0x00185408 File Offset: 0x00183608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearAPFJGHLEDOG()
		{
			this.aPFJGHLEDOGCase_ = PDCBFEBJEDH.APFJGHLEDOGOneofCase.None;
			this.aPFJGHLEDOG_ = null;
		}

		// Token: 0x060092B6 RID: 37558 RVA: 0x00185418 File Offset: 0x00183618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PDCBFEBJEDH);
		}

		// Token: 0x060092B7 RID: 37559 RVA: 0x00185428 File Offset: 0x00183628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PDCBFEBJEDH other)
		{
			return other != null && (other == this || (this.HLCDJBLKODE == other.HLCDJBLKODE && this.GroupId == other.GroupId && object.Equals(this.ChallengeDefault, other.ChallengeDefault) && object.Equals(this.ChallengeStory, other.ChallengeStory) && object.Equals(this.ChallengeBoss, other.ChallengeBoss) && this.APFJGHLEDOGCase == other.APFJGHLEDOGCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060092B8 RID: 37560 RVA: 0x001854C0 File Offset: 0x001836C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.HLCDJBLKODE != 0U)
			{
				num ^= this.HLCDJBLKODE.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault)
			{
				num ^= this.ChallengeDefault.GetHashCode();
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory)
			{
				num ^= this.ChallengeStory.GetHashCode();
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss)
			{
				num ^= this.ChallengeBoss.GetHashCode();
			}
			num ^= (int)this.aPFJGHLEDOGCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060092B9 RID: 37561 RVA: 0x00185572 File Offset: 0x00183772
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060092BA RID: 37562 RVA: 0x0018557A File Offset: 0x0018377A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060092BB RID: 37563 RVA: 0x00185584 File Offset: 0x00183784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.HLCDJBLKODE != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.HLCDJBLKODE);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.GroupId);
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault)
			{
				output.WriteRawTag(186, 12);
				output.WriteMessage(this.ChallengeDefault);
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory)
			{
				output.WriteRawTag(226, 63);
				output.WriteMessage(this.ChallengeStory);
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss)
			{
				output.WriteRawTag(178, 71);
				output.WriteMessage(this.ChallengeBoss);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060092BC RID: 37564 RVA: 0x00185650 File Offset: 0x00183850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.HLCDJBLKODE != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.HLCDJBLKODE);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.ChallengeDefault);
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.ChallengeStory);
			}
			if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss)
			{
				num += 2 + CodedOutputStream.ComputeMessageSize(this.ChallengeBoss);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060092BD RID: 37565 RVA: 0x00185700 File Offset: 0x00183900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PDCBFEBJEDH other)
		{
			if (other == null)
			{
				return;
			}
			if (other.HLCDJBLKODE != 0U)
			{
				this.HLCDJBLKODE = other.HLCDJBLKODE;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			PDCBFEBJEDH.APFJGHLEDOGOneofCase apfjghledogcase = other.APFJGHLEDOGCase;
			if (apfjghledogcase != PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault)
			{
				if (apfjghledogcase != PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory)
				{
					if (apfjghledogcase == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss)
					{
						if (this.ChallengeBoss == null)
						{
							this.ChallengeBoss = new ChallengeBossStatistics();
						}
						this.ChallengeBoss.MergeFrom(other.ChallengeBoss);
					}
				}
				else
				{
					if (this.ChallengeStory == null)
					{
						this.ChallengeStory = new ChallengeStoryStatistics();
					}
					this.ChallengeStory.MergeFrom(other.ChallengeStory);
				}
			}
			else
			{
				if (this.ChallengeDefault == null)
				{
					this.ChallengeDefault = new ChallengeStatistics();
				}
				this.ChallengeDefault.MergeFrom(other.ChallengeDefault);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060092BE RID: 37566 RVA: 0x001857E1 File Offset: 0x001839E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060092BF RID: 37567 RVA: 0x001857EC File Offset: 0x001839EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 104U)
				{
					if (num == 72U)
					{
						this.HLCDJBLKODE = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 1594U)
					{
						ChallengeStatistics challengeStatistics = new ChallengeStatistics();
						if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeDefault)
						{
							challengeStatistics.MergeFrom(this.ChallengeDefault);
						}
						input.ReadMessage(challengeStatistics);
						this.ChallengeDefault = challengeStatistics;
						continue;
					}
					if (num == 8162U)
					{
						ChallengeStoryStatistics challengeStoryStatistics = new ChallengeStoryStatistics();
						if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeStory)
						{
							challengeStoryStatistics.MergeFrom(this.ChallengeStory);
						}
						input.ReadMessage(challengeStoryStatistics);
						this.ChallengeStory = challengeStoryStatistics;
						continue;
					}
					if (num == 9138U)
					{
						ChallengeBossStatistics challengeBossStatistics = new ChallengeBossStatistics();
						if (this.aPFJGHLEDOGCase_ == PDCBFEBJEDH.APFJGHLEDOGOneofCase.ChallengeBoss)
						{
							challengeBossStatistics.MergeFrom(this.ChallengeBoss);
						}
						input.ReadMessage(challengeBossStatistics);
						this.ChallengeBoss = challengeBossStatistics;
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040037DD RID: 14301
		private static readonly MessageParser<PDCBFEBJEDH> _parser = new MessageParser<PDCBFEBJEDH>(() => new PDCBFEBJEDH());

		// Token: 0x040037DE RID: 14302
		private UnknownFieldSet _unknownFields;

		// Token: 0x040037DF RID: 14303
		public const int HLCDJBLKODEFieldNumber = 9;

		// Token: 0x040037E0 RID: 14304
		private uint hLCDJBLKODE_;

		// Token: 0x040037E1 RID: 14305
		public const int GroupIdFieldNumber = 13;

		// Token: 0x040037E2 RID: 14306
		private uint groupId_;

		// Token: 0x040037E3 RID: 14307
		public const int ChallengeDefaultFieldNumber = 199;

		// Token: 0x040037E4 RID: 14308
		public const int ChallengeStoryFieldNumber = 1020;

		// Token: 0x040037E5 RID: 14309
		public const int ChallengeBossFieldNumber = 1142;

		// Token: 0x040037E6 RID: 14310
		private object aPFJGHLEDOG_;

		// Token: 0x040037E7 RID: 14311
		private PDCBFEBJEDH.APFJGHLEDOGOneofCase aPFJGHLEDOGCase_;

		// Token: 0x02001B56 RID: 6998
		public enum APFJGHLEDOGOneofCase
		{
			// Token: 0x040066A4 RID: 26276
			None,
			// Token: 0x040066A5 RID: 26277
			ChallengeDefault = 199,
			// Token: 0x040066A6 RID: 26278
			ChallengeStory = 1020,
			// Token: 0x040066A7 RID: 26279
			ChallengeBoss = 1142
		}
	}
}
